const rp = require('request-promise');

async function run() {
    try {
        const opt = {
            uri: 'https://www.amazon.ca',
            proxy: 'http://222.74.202.229:9999',
            tunnel: false
        }
        let res = await rp(opt);
        console.log(res);
    } catch (error) {
        console.log(error);
    }
}

run();